﻿using System;
using System.ComponentModel;

namespace JTG.ServiceInterface.Model
{
    /// <summary>
    /// 签到信息
    /// </summary>
    public class SignInfo
    {
        /// <summary>
        /// 单据号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 病人姓名
        /// </summary>
        public string PatientName { get; set; }

        /// <summary>
        /// 病人ID
        /// </summary>
        public string PatientId { get; set; }

        /// <summary>
        /// 医生姓名
        /// </summary>
        public string DoctorName { get; set; }

        /// <summary>
        /// 诊室名称
        /// </summary>
        public string OfficeName { get; set; }

        private SignStatus _singStatus;

        /// <summary>
        /// 签到状态：1-签到成功，2-已签到，3-过号签到，4-回诊签到
        /// </summary>
        public SignStatus SingStatus
        {
            get => _singStatus;
            set => _singStatus = value;
        }

        public string SignStatusDesc
        {
            get
            {
                try
                {
                    return _singStatus.GetDisplayDescription();
                }
                catch
                {
                    return "重复签到";
                }
            }
        }

        /// <summary>
        /// 挂号顺序
        /// </summary>
        public string Sort { get; set; }

        /// <summary>
        /// 病人卡号（健康卡号）
        /// </summary>
        public string CardId { get; set; }

        /// <summary>
        /// 挂号ID
        /// </summary>
        public string SignId { get; set; }

        /// <summary>
        /// 挂号序号
        /// </summary>
        public string SignNo { get; set; }

        /// <summary>
        /// 诊室位置
        /// </summary>
        public string OfficePs { get; set; }

        /// <summary>
        /// 签到时间
        /// </summary>
        public string SignTime { get; set; }

        /// <summary>
        /// 排队号码
        /// </summary>
        public string QueueNo { get; set; }

        public string ErrorMsg { get; set; }
    }
}